﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Guoc.BigMall.WebService.Dto
{
   public class OrderProductVo
    {
        public OrderProductVo()
        {
            this.Items = new List<OrderProductItemVo>();
        }


        public List<OrderProductItemVo> Items { get; set; }

        public decimal TotalAmount { get; private set; }


        public void SumTotalAmount()
        {
            TotalAmount=  this.Items.Sum(n => n.getAmount());
        }
    }
}
